# cython: language_level=3
from sqlalchemy import Column, String, DateTime, DECIMAL, Integer

from common.database import BaseTable


class IntraDayTaskResource(BaseTable):
    __tablename__ = "intra_day_task_resource"
    start_time = Column(DateTime, comment="开始时间")
    end_time = Column(DateTime, comment="结束时间")
    target_power = Column(DECIMAL(10, 2), comment="目标功率值")
    task_code = Column(String(255), comment="任务ID")
    resource_id = Column(String(255), comment="资源ID")
    execution_date = Column(DateTime, comment="执行日期")
    handle_status = Column(Integer, comment="处理状态,0:未处理,1:已处理", default=0)
